/**
 * 
 */
package com.secfound.soccer.shared.db;

import java.io.Serializable;
import java.util.Date;

import com.google.code.twig.annotation.Id;

/**
 * Gamer placing bets
 * @author alfonso.ayala
 *
 */
public class Challenger implements Serializable {
	
	public int getTrainingPoints() {
		return trainingPoints;
	}
	public void setTrainingPoints(int trainingPoints) {
		this.trainingPoints = trainingPoints;
	}
	public int getTrainingHits() {
		return trainingHits;
	}
	public void setTrainingHits(int trainingHits) {
		this.trainingHits = trainingHits;
	}
	public int getTrainingTries() {
		return trainingTries;
	}
	public void setTrainingTries(int trainingTries) {
		this.trainingTries = trainingTries;
	}
	/**
	 * 
	 */
	private static final long serialVersionUID = -6291450453648088182L;
	@Id
	String email;
	String name;
	String nickname;
	Date created;
	//String defaultURL="";
	String loginURL="";
	String logoutURL="";
	float averageHits=0;
	int tries=0;
	int hits=0;
	int points=0;
	int trainingHits=0;
	int trainingTries=0;
	int trainingPoints=0;
	String msg="";
	boolean loggedIn=false;
	
	
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public float getAverageHits() {
		return averageHits;
	}
	public void setAverageHits(float averageHits) {
		this.averageHits = averageHits;
	}
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getPoints() {
		return points;
	}
	public void setPoints(int points) {
		this.points = points;
	}
	public Date getCreated() {
		return created;
	}
	public void setCreated(Date created) {
		this.created = created;
	}
//	public String getDefaultURL() {
//		return defaultURL;
//	}
//	public void setDefaultURL(String defaultURL) {
//		this.defaultURL = defaultURL;
//	}
	public String getLoginURL() {
		return loginURL;
	}
	public void setLoginURL(String loginURL) {
		this.loginURL = loginURL;
	}
	public String getLogoutURL() {
		return logoutURL;
	}
	public void setLogoutURL(String logoutURL) {
		this.logoutURL = logoutURL;
	}
	public String toString(){
		if(isLoggedIn()){
			return "OK-logged";
		}else{
			return "ERR-NOTlogged";
		}
	}
	public boolean isLoggedIn() {
		return loggedIn;
	}
	public void setLoggedIn(boolean loggedIn) {
		this.loggedIn = loggedIn;
	}
	public int getTries() {
		return tries;
	}
	public void setTries(int tries) {
		this.tries = tries;
	}
	public int getHits() {
		return hits;
	}
	public void setHits(int hits) {
		this.hits = hits;
	}
}
